Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members

Peonstdafx.h

00001 
00002 #ifndef __PEONSTDAFX_H_
00003 #define __PEONSTDAFX_H_
00004 /*
00005 Peon - Win32 Games Programming Library
00006 Copyright (C) 2002-2005 Erik Yuzwa
00007 
00008 This library is free software; you can redistribute it and/or
00009 modify it under the terms of the GNU Library General Public
00010 License as published by the Free Software Foundation; either
00011 version 2 of the License, or (at your option) any later version.
00012 
00013 This library is distributed in the hope that it will be useful,
00014 but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016 Library General Public License for more details.
00017 
00018 You should have received a copy of the GNU Library General Public
00019 License along with this library; if not, write to the Free
00020 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00021 
00022 Erik Yuzwa
00023 peon AT wazooinc DOT com
00024 */
00025 
00026 #include "PeonDLLHeader.h"
00027 
00028 
00029 #if defined( __WIN32__ ) || defined( _WIN32 )
00030 //enable some memory leak detection
00031 #if defined(DEBUG) | defined(_DEBUG)
00032 #define CRTDBG_MAP_ALLOC
00033 #include <stdlib.h>
00034 #include <crtdbg.h>
00035 #endif
00036 
00037 #endif
00038 
00039 /***************************************************************
00040 * These headers define our OpenGL subsystem and helper functions
00041 ***************************************************************/
00042 #include <SDL.h>
00043 #include <SDL_opengl.h>
00044 #include "GL/glext.h"
00045 
00046 
00047 /***************************************************************
00048 * These headers define our lua subsystem and helper functions
00049 ***************************************************************/
00050 extern "C"
00051 {
00052   #include "lua/lua.h"
00053   #include "lua/lualib.h"
00054   #include "lua/lauxlib.h"
00055 }
00056 
00057 /***************************************************************
00058 * These headers define our tokamak physics library
00059 ***************************************************************/
00060 #include "tokamak/tokamak.h"
00061 
00062 /***************************************************************
00063 * These headers define our Audio subsystem and helper functions
00064 ***************************************************************/
00065 
00066 //SDL_Mixer 
00067 #include <SDL_mixer.h>
00068 
00069 //OpenAL
00070 #include "al/al.h"
00071 #include "al/alc.h"
00072 #include "al/alut.h"
00073 
00074 //Ogg-Vorbis SDK which is used to read audio files in OGG format
00075 #include "ogg/ogg.h"
00076 #include "vorbis/codec.h"
00077 #include "vorbis/vorbisenc.h"
00078 #include "vorbis/vorbisfile.h"
00079 
00080 
00081 /***************************************************************
00082 * These headers define our CEGUI subsystem and helper functions
00083 ***************************************************************/
00084 #include "CEGUI/CEGUI.h"
00085 #include "CEGUI/renderers/OpenGLGUIRenderer/openglrenderer.h"
00086 
00087 
00088 
00089 /***************************************************************
00090 * Various warnings that we need to disable
00091 ***************************************************************/
00092 // Turn off warnings generated by long std templates
00093 // This warns about truncation to 255 characters in debug/browse info
00094 #   pragma warning (disable : 4786)
00095 
00096 // Turn off warnings generated by long std templates
00097 // This warns about truncation to 255 characters in debug/browse info
00098 #   pragma warning (disable : 4503)
00099 
00100 // disable: "conversion from 'double' to 'float', possible loss of data
00101 #   pragma warning (disable : 4244)
00102 
00103 // disable: "truncation from 'double' to 'float'
00104 #   pragma warning (disable : 4305)
00105 
00106 // disable: "<type> needs to have dll-interface to be used by clients'
00107 // Happens on STL member variables which are not public therefore is ok
00108 #   pragma warning (disable : 4251)
00109 
00110 // disable: "non dll-interface class used as base for dll-interface class"
00111 // Happens when deriving from Singleton because bug in compiler ignores
00112 // template export
00113 #   pragma warning (disable : 4275)
00114 
00115 // disable: "C++ Exception Specification ignored"
00116 // This is because MSVC 6 did not implement all the C++ exception
00117 // specifications in the ANSI C++ draft.
00118 #   pragma warning( disable : 4290 )
00119 
00120 // disable: "no suitable definition provided for explicit template
00121 // instantiation request" Occurs in VC7 for no justifiable reason on all
00122 // #includes of Singleton
00123 #   pragma warning( disable: 4661)
00124 
00125 // disable: deprecation warnings when using CRT calls in VC8
00126 // These show up on all C runtime lib code in VC8, disable since they clutter
00127 // the warnings with things we may not be able to do anything about (e.g.
00128 // generated code from nvparse etc). I doubt very much that these calls
00129 // will ever be actually removed from VC anyway, it would break too much code.
00130 #       pragma warning( disable: 4996)
00131 
00132 #include <cassert>
00133 #include <cstdio>
00134 #include <cstdlib>
00135 #include <ctime>
00136 #include <cstring>
00137 #include <cstdarg>
00138 #include <cmath>
00139 
00140 // STL containers
00141 #include <vector>
00142 #include <map>
00143 #include <string>
00144 #include <set>
00145 #include <list>
00146 #include <deque>
00147 #include <queue>
00148 
00149 
00150 // STL algorithms & functions
00151 #include <algorithm>
00152 #include <functional>
00153 #include <limits>
00154 
00155 // C++ Stream stuff
00156 #include <fstream>
00157 #include <iostream>
00158 #include <iomanip>
00159 #include <sstream>
00160 
00161 
00162 #if defined( __WIN32__ ) || defined( _WIN32 )
00163 
00164 #undef min
00165 #undef max
00166 
00167 #endif
00168 
00169 
00170 
00176 #define PEON_DELETE(p)       { if(p) { delete (p);     (p)=NULL; } }
00177 #define PEON_DELETE_ARRAY(p) { if(p) { delete[] (p);   (p)=NULL; } }
00178 
00179 
00185 #define PEON_PI 3.141592654f
00186 #define PEON_DEGTORAD(degree) ((degree) * (PEON_PI / 180.0f))
00187 #define PEON_RADTODEG(radian) ((radian) * (180.0f / PEON_PI))
00188 
00189 
00190 namespace peon
00191 {
00192 
00193 
00199 #if defined( PEON_UNICODE )
00200         typedef std::wstring _StringBase;
00201         typedef const wchar_t* _StringPtrBase;
00202 #else
00203         typedef std::string _StringBase;
00204         typedef const char* _StringPtrBase;
00205 #endif
00206 
00207         typedef _StringBase String;
00208         typedef _StringPtrBase StringPtr;
00209 
00210 
00211         class Angle;
00212         class AudioEngine;
00213         class AxisAlignedBox;
00214         class Billboard;
00215         class Degree;
00216         class EngineCore;
00217         class FileLogger;
00218         class IActor;
00219         class IApplication;
00220         class IniConfigReader;
00221         class ISceneObject;
00222         class IUnknown;
00223         class Matrix33;
00224         class Matrix44;
00225         class MathUnit;
00226         class Plane;
00227         class PlaneBoundedVolume;
00228         class Radian;
00229         class Ray;
00230         class SceneCamera;
00231         class SceneFont;
00232         class SceneLight;
00233         class SceneOBJ;
00234         class SceneMD3;
00235         class SceneRenderer;
00236         class SceneTexture;
00237         class Skybox;
00238         class Sphere;
00239         class ParticleEmitter;
00240         class Quaternion;
00241         class Shockwave;
00242         class Timer;
00243         class Vector2;
00244         class Vector3;
00245         class Vector4;
00246 
00247 
00248 }
00249 
00250 #endif
00251 
00252 
00253 
00254 
00255 
00256 
00257 
00258 
00259 
00260 
00261 

Generated on Thu Dec 1 01:55:40 2005 for Peon by  doxygen 1.4.1